package org.minbox.framework.microservice.goods.api;

import org.minbox.framework.microservice.common.entity.GoodsInfo;
import org.minbox.framework.microservice.goods.service.GoodsService;
import org.minbox.framework.microservice.openfeign.GoodsServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商品服务对外接口控制器
 *
 */
@RestController
public class GoodsController implements GoodsServiceClient {
    @Autowired
    private GoodsService goodsService;

    @Override
    public GoodsInfo findById(Integer goodsId) {
        return goodsService.findById(goodsId);
    }
}
